import django_filters
from .models import deploy_history
# from .models import deployInfo


class DeployOprationFilter(django_filters.rest_framework.FilterSet):

    '''
    自定义过滤，用于逻辑判断
    '''

    oprate_param = django_filters.CharFilter(method='to_deploy_filter')

    def to_deploy_filter(self, queryset, name, value):
        return queryset.filter()
    #
    # class Meta:
    #     model = deployInfo
    #     fields = ('name','env')

